package com.deli.springboot.mapper;

import com.deli.springboot.entity.BorrowHistory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="BorrowHistoryMapper")
public interface BorrowHistoryMapper {

    /**
     * 根据条件查询浏览历史
     * @param borrowHistory
     * @return
     */
     List<BorrowHistory> findByExample(BorrowHistory borrowHistory);

    /**
     * 修改借书记录的状态
     * @param borrowHistory
     * @return
     */
     int update(BorrowHistory borrowHistory);

    /**
     * 新增借书记录
     */
     int addRecord(BorrowHistory borrowHistory);
}
